import request from '@/utils/request'

//获取列表
export function getList(data){
    return request({
      url: 'joint/platform',
      method: 'get',
      params:data
    })
  }

  //新增
  export function createData(data){
    return request({
        url:'joint/platform',
        method:'post',
        data
    })
}

//设置规则
export function operaterule(data){
    return request({
        url:'joint/platform/operaterule',
        method:'put',
        data
    })
}

//审核
export function approval(data){
    return request({
        url:'joint/platform/approval',
        method:'put',
        data
    })
}

// 取消接入

export function approvalcancel(data){
    return request({
        url:'joint/platform/cancel',
        method:'delete',
        data
    })
}


// 创建
export function createitem(data){
    return request({
        url:'joint/platform/create',
        method:'post',
        data
    })
}

//接入我的
export function getOption(data){
    return request({
        url:'joint/platform/create',
        method:'post',
        data
    })
}

//规则选项
export function getruleOption(data){
    return request({
        url: 'joint/rule/option',
        method: 'get',
        params:data
      })
}